package com.ruoyi.quartz.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * job配置对象 sys_job_info_config
 * 
 * @author ruoyi
 * @date 2023-05-01
 */
public class SysJobInfoConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键
 */
    private Long id;

    /** job名称 */
    @Excel(name = "job名称")
    private String jobName;

    /** 机器名称 */
    @Excel(name = "机器名称")
    private String instanceName;

    /** cron表达式 */
    @Excel(name = "cron表达式")
    private String cron;

    /** 是否正在执行 */
    @Excel(name = "是否正在执行")
    private String isRunning;

    /** 是否可用 */
    @Excel(name = "是否可用")
    private String isValid;

    /** 运行状态（N：待运行，W：运行中，S：成功，F：失败） */
    @Excel(name = "运行状态", readConverterExp = "N=：待运行，W：运行中，S：成功，F：失败")
    private String status;

    /** job描述 */
    @Excel(name = "job描述")
    private String jobDesc;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setJobName(String jobName) 
    {
        this.jobName = jobName;
    }

    public String getJobName() 
    {
        return jobName;
    }
    public void setInstanceName(String instanceName) 
    {
        this.instanceName = instanceName;
    }

    public String getInstanceName() 
    {
        return instanceName;
    }
    public void setCron(String cron) 
    {
        this.cron = cron;
    }

    public String getCron() 
    {
        return cron;
    }
    public void setIsRunning(String isRunning) 
    {
        this.isRunning = isRunning;
    }

    public String getIsRunning() 
    {
        return isRunning;
    }
    public void setIsValid(String isValid) 
    {
        this.isValid = isValid;
    }

    public String getIsValid() 
    {
        return isValid;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setJobDesc(String jobDesc) 
    {
        this.jobDesc = jobDesc;
    }

    public String getJobDesc() 
    {
        return jobDesc;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobName", getJobName())
            .append("instanceName", getInstanceName())
            .append("cron", getCron())
            .append("isRunning", getIsRunning())
            .append("isValid", getIsValid())
            .append("status", getStatus())
            .append("jobDesc", getJobDesc())
            .append("updateBy", getUpdateBy())
            .append("createdTime", getCreatedTime())
            .append("createdBy", getCreatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
